<?php
class X2FlowCreateReminder extends X2FlowAction {
	public $title = 'Create Action Reminder';
	public $info = 'At the specified time, this user will receive a reminder on their activity feed.';
	
	public function paramRules() {
		$assignmentOptions = array('{assignedTo}'=>'{'.Yii::t('studio','Owner of Record').'}') + X2Model::getAssignmentOptions(false,false);	// '{assignedTo}', no groups, no 'anyone'
		
		return array('title'=>$this->title,'info'=>$this->info,'options'=>array(
			array('name'=>'user','label'=>'User','type'=>'dropdown','options'=>$assignmentOptions),
			array('name'=>'text','label'=>'Message','type'=>'text'),
			array('name'=>'timestamp','label'=>'Time','type'=>'dateTime'),
		));
	}
	
	public function execute(&$params) {
		
		
		
		
	}
}